package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * Created by YUJIE on 2018/7/31.
 */
@Controller
@RequestMapping("/base")
public class WmsbaseBaozhuang {
    @Autowired
    SysMenuService menuService;

    @RequestMapping(value = "baozhuang/{menu}")
    public String Baozhuang(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "base/baozhuang/baozhuang";
    }
    @RequestMapping(value = "AddBaozhuang")
    public String addBaozhuang() {
        return "base/baozhuang/addbaozhuang";
    }
    @RequestMapping(value = "EditBaozhuang")
    public String editBaozhuang(){
        return "base/baozhuang/editbaozhuang";
    }
    @RequestMapping(value = "ViewPile")
    public String viewpile(){
        return "base/baozhuang/viewPile";
    }
}
